package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 验收管理表
 * @TableName device_acceptance
 */
@TableName(value ="device_acceptance")
@Data
public class DeviceAcceptance implements Serializable {
    /**
     * 验收管理编号
     */
    @TableId(type = IdType.AUTO)
    private Integer acceptanceId;

    /**
     * 关联验收编码
     */
    private String code;

    /**
     * 验收管理标题
     */
    private String acceptanceTitle;

    /**
     * 验收管理范围
     */
    private String acceptanceRange;

    /**
     * 验收人
     */
    private Integer acceptancePerson;

    /**
     * 验收时间
     */
    private Date acceptanceTime;

    /**
     * 备注
     */
    private String notes;

    /**
     * 创建人
     */
    private String insertPerson;

    /**
     * 创建时间
     */
    private Date insertTime;

    /**
     * 更新人
     */
    private String updatePerson;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DeviceAcceptance other = (DeviceAcceptance) that;
        return (this.getAcceptanceId() == null ? other.getAcceptanceId() == null : this.getAcceptanceId().equals(other.getAcceptanceId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getAcceptanceTitle() == null ? other.getAcceptanceTitle() == null : this.getAcceptanceTitle().equals(other.getAcceptanceTitle()))
            && (this.getAcceptanceRange() == null ? other.getAcceptanceRange() == null : this.getAcceptanceRange().equals(other.getAcceptanceRange()))
            && (this.getAcceptancePerson() == null ? other.getAcceptancePerson() == null : this.getAcceptancePerson().equals(other.getAcceptancePerson()))
            && (this.getAcceptanceTime() == null ? other.getAcceptanceTime() == null : this.getAcceptanceTime().equals(other.getAcceptanceTime()))
            && (this.getNotes() == null ? other.getNotes() == null : this.getNotes().equals(other.getNotes()))
            && (this.getInsertPerson() == null ? other.getInsertPerson() == null : this.getInsertPerson().equals(other.getInsertPerson()))
            && (this.getInsertTime() == null ? other.getInsertTime() == null : this.getInsertTime().equals(other.getInsertTime()))
            && (this.getUpdatePerson() == null ? other.getUpdatePerson() == null : this.getUpdatePerson().equals(other.getUpdatePerson()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAcceptanceId() == null) ? 0 : getAcceptanceId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getAcceptanceTitle() == null) ? 0 : getAcceptanceTitle().hashCode());
        result = prime * result + ((getAcceptanceRange() == null) ? 0 : getAcceptanceRange().hashCode());
        result = prime * result + ((getAcceptancePerson() == null) ? 0 : getAcceptancePerson().hashCode());
        result = prime * result + ((getAcceptanceTime() == null) ? 0 : getAcceptanceTime().hashCode());
        result = prime * result + ((getNotes() == null) ? 0 : getNotes().hashCode());
        result = prime * result + ((getInsertPerson() == null) ? 0 : getInsertPerson().hashCode());
        result = prime * result + ((getInsertTime() == null) ? 0 : getInsertTime().hashCode());
        result = prime * result + ((getUpdatePerson() == null) ? 0 : getUpdatePerson().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", acceptanceId=").append(acceptanceId);
        sb.append(", code=").append(code);
        sb.append(", acceptanceTitle=").append(acceptanceTitle);
        sb.append(", acceptanceRange=").append(acceptanceRange);
        sb.append(", acceptancePerson=").append(acceptancePerson);
        sb.append(", acceptanceTime=").append(acceptanceTime);
        sb.append(", notes=").append(notes);
        sb.append(", insertPerson=").append(insertPerson);
        sb.append(", insertTime=").append(insertTime);
        sb.append(", updatePerson=").append(updatePerson);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}